#include"UdpServer.hpp"
#include<memory>

//./UdpServer ip port
using namespace USV;
int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        std::cerr<<"Usage:"<<argv[0]<<"ip port"<<std::endl;
        return 1;
    }
    std::string ip=argv[1];
    uint16_t port=std::stoi(argv[2]);
    std::unique_ptr<UdpServer> usvr=std::make_unique<UdpServer>(ip,port);
    usvr->Init();
    usvr->Start();

    return 0;
}